#include "yigcable.h"

YigCable::YigCable(sc::Synth *synth, int inBus, int outBus, QObject *parent) :
    mSynth(synth),
    mInBus(inBus),
    mOutBus(outBus),
    QObject(parent)
{
    mSynth->set("inBus", mInBus);
    mSynth->set("outBus", mOutBus);
}

YigCable::~YigCable()
{
    delete mSynth;
}

int YigCable::getInBus()
{
    return mInBus;
}

int YigCable::getOutBus()
{
    return mOutBus;
}

void YigCable::free()
{
    mSynth->set("gate", 0);
    //mSynth->free();
}
